<%-- 
    Document   : testUpimages
    Created on : Oct 23, 2011, 1:13:38 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
        
	<title>jQuery UI Datepicker - Select a Date Range</title>
	<link rel="stylesheet" href="development-bundle/themes/base/jquery.ui.all.css">
	<script src="development-bundle/jquery-1.6.2.js"></script>
	<script src="development-bundle/ui/jquery.ui.core.js"></script>
	<script src="development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="development-bundle/ui/jquery.ui.datepicker.js"></script>        
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript" src="js/additional-methods.js"></script>
	<link rel="stylesheet" href="development-bundle/demos.css">
        <script type="text/javascript">
            $(function(){
                $("#test").validate({
                    rules:{
                        txtUser: {
                            required: true,
                            rangelength: [5,20]
                        }
                    }                    
                })
            
        });        
	$(function() {
		var dates = $( "#from, #to" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 3,
			onSelect: function( selectedDate ) {
				var option = this.id == "from" ? "minDate" : "maxDate",
					instance = $( this ).data( "datepicker" ),
					date = $.datepicker.parseDate(
						instance.settings.dateFormat ||
						$.datepicker._defaults.dateFormat,
						selectedDate, instance.settings );
				dates.not( this ).datepicker( "option", option, date );
			}
		});
	});
	</script>
</head>
<body>

<form name="test" action="UpImages" id="test" enctype="multipart/form-data" method="post">
            Username: <input type="text" name="txtUser" value=""/><br>
            Password: <input type="password" name="txtPass" value="" id="txtPass"/><br>
            re-Password: <input type="password" name="txtrePass" value=""/><br>
            Age: <input type="text" name="txtAge" value=""/><br>
            Email: <input type="text" name="txtEmail" value=""/><br>
            File: <input type="file" name="Upload" value=""/><br>                   
            <label for="from">From</label>
            <input type="text" id="from" name="from"/>
            <label for="to">to</label>
            <input type="text" id="to" name="to"/>

            
            <FCK:editor instanceName="EditorDefault" height="500" value="Hong?" width="500" toolbarSet="TourAndTravel">    
</FCK:editor>
            
        <input type="submit" value="chen'"/>
        </form>



</body>
</html>
